package com.squirrel.michale;

public class Day20240422_LeetCode000809 {

    public int expressiveWords(String s, String[] words) {

        //先把 s 拆分成字母组
        char[][] alphabetGroup = new char[][]{};

        char[] charArray = s.toCharArray();
        char first ;
        for (int i = 0; i < charArray.length; i++) {
            first = charArray[0];
            char[] group = new char[]{};
            if (charArray[i] == first) {
                group[0] = first;
                group[i] = first;
            }else{
                alphabetGroup[0] = group;

            }

        }
        return 1;

    }
}
